<div id="madoquaError">
    <h2><?= $this->translate('Development/Debug Mode Exception') ?></h2>
    <p>
    <?= $this->translate('You can disable the display of exceptions and debug
     traces by setting the value of the <development> variable in your config
     to 0.'); ?>
    </p>
    <?php foreach ($this->errors as $error): ?>
    <h3><?= $error->getMessage(); ?></h3>
    <dl>
       <dt>File</dt>
       <dd><?= $error->getFile(); ?></dd>
       <dt>Line</dt>
       <dd><?= $error->getLine(); ?></dd>
       <dt>Code</dt>
       <dd><?= $error->getCode(); ?></dd>
       <dt>Trace</dt>
       <dd> 
           <ol>
           <?php foreach ($error->getTrace() as $trace):?>
                <li>   
                    <ul>
                        <li>Function: <?= @$trace['function']; ?></li>                        
                        <li>Class: <?= @$trace['class']; ?></li>
                        <li>File:<?= @$trace['file']; ?></li>                        
                        <li>Line: <?= @$trace['line']; ?></li>        
                    </ul>
                </li>
       <?php endforeach;?>
           </ol>
    </dl>
    <?php endforeach; ?>
</div>